
/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');

window.Vue = require('vue');

/**
 * The following block of code may be used to automatically register your
 * Vue components. It will recursively scan this directory for the Vue
 * components and automatically register them with their "basename".
 *
 * Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
 */

// const files = require.context('./', true, /\.vue$/i)
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))

Vue.component('app', require('./components/App.vue').default);
Vue.component('container', require('./components/Container.vue').default);

Vue.component('tig-repository-item', require('./components/TigRepositoryItem.vue').default);

Vue.component('tig-chapter-item', require('./components/TigChapterItem.vue').default);
Vue.component('tig-form', require('./components/TigForm.vue').default);
Vue.component('help-text', require('./components/form/HelpText.vue').default);
Vue.component('form-label', require('./components/form/FormLabel.vue').default);
Vue.component('form-field', require('./components/form/FormField.vue').default);
Vue.component('tig-tag-field', require('./components/form/TigTagField.vue').default);
Vue.component('default-field', require('./components/form/DefaultField.vue').default);
Vue.component('csrf-token-field', require('./components/form/CsrfTokenField.vue').default);
Vue.component('heading', require('./components/Heading.vue').default);
Vue.component('card', require('./components/Card.vue').default);
Vue.component('card-block', require('./components/CardBlock.vue').default);
// Vue.component('chapter-form', require('./components/ChapterForm.vue').default);
// Vue.component('repository-form', require('./components/RepositoryForm.vue').default);
Vue.component('tig-like', require('./components/TigLike.vue').default);
Vue.component('tig-dislike', require('./components/TigDislike.vue').default);
Vue.component('tig-profile-card', require('./components/TigProfileCard.vue').default);
Vue.component('tig-global-search', require('./components/TigGlobalSearch.vue').default);
// Vue.component('tig-tieba', require('./components/TigTieba.vue').default);
Vue.component('tig-rank-board', require('./components/TigRankBoard.vue').default);
/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the page. Then, you may begin adding components to this application
 * or customize the JavaScript scaffolding to fit your unique needs.
 */
import Toasted from 'vue-toasted';
Vue.use(Toasted, {
    theme: 'tig',
    position: 'bottom-right',
    duration: 6000,
})
const app = new Vue({
    el: '#app'
});
